﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Domain.Entities.Auditing;
using Volo.Abp.MultiTenancy;
using Volo.Abp;
using System.ComponentModel.DataAnnotations;

namespace Business.Models
{
    /// <summary>
    /// 仓库类
    /// </summary>
    public class Warehouse : AuditedAggregateRoot<Guid>, ISoftDelete, IMultiTenant
    {
        public Guid? TenantId { get; set; }
        public bool IsDeleted { get; set; }

        /// <summary>
        /// 仓库编号
        /// </summary>
        public string WarehouseNo { get; set; }

        /// <summary>
        /// 仓库名称
        /// </summary>
        [Required]
        public string WarehouseName { get; set; }

        /// <summary>
        /// 租赁时间
        /// </summary>
        public DateTime LeaseTime { get; set; }

        /// <summary>
        /// 仓库类型
        /// </summary>
        public int WarehouseType { get; set; }

        /// <summary>
        /// 所属部门
        /// </summary>
        public int DepartmentId { get; set; }

        /// <summary>
        /// 地址
        /// </summary>
        public string Address { get; set; }

        /// <summary>
        /// 面积
        /// </summary>
        public int Area { get; set; }

        /// <summary>
        /// 作用
        /// </summary>
        public string Purpose { get; set; }

        /// <summary>
        /// 联系人
        /// </summary>
        public string Contact { get; set; }

        /// <summary>
        /// 电话
        /// </summary>
        public string Phone { get; set; }

        /// <summary>
        /// 是否禁用
        /// </summary>
        public bool IsDisabled { get; set; }

        /// <summary>
        /// 是否默认
        /// </summary>
        public bool IsDefault { get; set; }


    }
}
